import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
import store from './store'
Vue.prototype.$store = store
// 引入自定义的websocket类
import Websocket from "@/utils/websocket.js"
const websocket=new Websocket();
websocket.store=store
Vue.prototype.$websocket = websocket; // 将 websocket 实例挂载到 Vue 原型上

// 引入uview
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)
//引入vuex

Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	store,
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif

//全局变量
Vue.prototype.baseUrl=uni.getStorageSync('baseUrl')||"http://192.168.147.156:8888"


export default app